home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Vertigo / Nub / Port.h < prev   
Text File  |  2000-06-23  |  797b  |  42 lines

  1. #ifndef _PORT_
  2. #define _PORT_
  3.  
  4. #include <MacTypes.h>
  5. #include <QDOffscreen.h>
  6. #include "ProcInfo.h"
  7.  
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12.  
  13. typedef struct PortShade
  14. {
  15.     GrafPtr            port;
  16.     Boolean            color;
  17.     union {
  18.         QDProcs        bw;
  19.         CQDProcs    color;
  20.     } stdProcs;
  21.     union {
  22.         QDProcs        bw;
  23.         CQDProcs    color;
  24.     } procs;
  25. } PortShade, *PortShadePtr, **PortShadeHandle;
  26.  
  27.  
  28. OSStatus InitializePorts(void);
  29. void FinalizePorts(void);
  30. void AddDirtyRect(GrafPtr port,Rect *dirtyRect);
  31. void FlushScreenBuffer(void);
  32. void MungeCopyBits(BitMap *srcMap,BitMap *dstMap,Rect *srcRect,Rect *dstRect,short mode,RgnHandle maskRgn,CopyBitsProcPtr copyBitsProc);
  33. void RegisterPort(GrafPtr port);
  34. void RescanPorts(void);
  35. void UnregisterPort(GrafPtr port,Boolean afterTheFact);
  36.  
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40.  
  41. #endif /* _PORT_ */
  42.